home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / pc / allfiles / angry / nikole.dir / 00001_movie script.ls next >
Encoding:
Text File  |  1999-03-01  |  640 b   |  37 lines

  1. global fileSep
  2.  
  3. on startMovie
  4.   initMovie()
  5.   repeat with i = 1 to 6
  6.     if soundBusy(i) then
  7.       sound stop i
  8.     end if
  9.   end repeat
  10. end
  11.  
  12. on initMovie
  13.   if the machineType = 256 then
  14.     fileSep = "\"
  15.   else
  16.     fileSep = ":"
  17.   end if
  18.   set the keyDownScript to "keyCheck"
  19. end
  20.  
  21. on keyCheck
  22.   setVolume()
  23. end
  24.  
  25. on setVolume
  26.   inKey = the key
  27.   if (inKey = "q") or (inKey = "Q") then
  28.     go("quitArtRight", "intro")
  29.   end if
  30.   if (charToNum(inKey) >= charToNum("0")) and (charToNum(inKey) <= charToNum("9")) then
  31.     newVol = integer(the key)
  32.     if the soundLevel <> newVol then
  33.       set the soundLevel to newVol
  34.     end if
  35.   end if
  36. end
  37.